package vn.vfriends.vcms.admin.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.vcms.admin.model.User;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface UserService extends Serializable {

    public void createUser(User user) throws Exception;
    
    public void editUser(User user) throws Exception;
    
    public void destroyUser(Long id) throws Exception;
    
    public List<User> findUsers();
    
    public List<User> findUsers(int maxResults, int firstResult);
    
    public User findUser(Long id);
    
    public User findUserByUsername(String username);
    
    public int getUserCount();
}
